/**
 * Copyright (C), 2019-2022, 宇信融汇
 * FileName: Mouse
 * Author:   666
 * Date:     2022/1/15 20:23
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.polymorphic;

/**
 * @Classname Mouse
 * @Description TODO
 * @Date 2022/1/15 20:23
 * @Created by 666
 */
public class Mouse implements Usb {
    private String name;

    public Mouse(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void connect() {
        System.out.println(name + "连接");
    }

    @Override
    public void unConnect() {
        System.out.println(name + "未连接");
    }

    /*
     *@Description 子类特有的行为
     *@return void
     *@date
     *@auther
     */
    public void dbClick() {
        System.out.println(name + "双击");
    }
}
